package com.example.mybatis.flex.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.RelationOneToMany;
import com.mybatisflex.annotation.Table;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

@Table(value = "admin.bv_mysql_user")
@Getter
@Setter
@ToString
public class DenodoUserView implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    private String name;

    @RelationOneToMany(selfField = "id", targetField = "userId")
    private List<DenodoContentView> content;

}
